package com.tedu.pj.common.webconf;

import org.springframework.boot.web.servlet.ServletListenerRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>
 *
 * </p>
 *
 * @author Song
 * @since 2020/10/21
 */
@Configuration
public class ListenerConfig {
    @Bean
    public ServletListenerRegistrationBean registrationBean() {

        ServletListenerRegistrationBean registrationBean = new ServletListenerRegistrationBean();
//        registrationBean.setListener(new MyHttpRequestListener());
//        registrationBean.setListener(new MyHttpSessionListener());
        return registrationBean;
    }
}
